package com.example.demo.smartLamp.service;

import com.example.demo.common.ApiResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

/**
 * @author cc
 */
public interface UploadService {
    ApiResponse uploadVideo(MultipartFile file, String title, HttpServletRequest request) throws IOException;

    ApiResponse uploadImage(MultipartFile file, String title, HttpServletRequest request) throws IOException;

    ApiResponse getAllVideoAndImage();

}
